package com.softeem.mapper;

import com.softeem.entity.WorkOrder;
import com.softeem.entity.WorkOrderExample;
import com.softeem.model.WorkOrderModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkOrderMapper {
    long countByExample(WorkOrderExample example);

    int deleteByExample(WorkOrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(WorkOrder record);

    int insertSelective(WorkOrder record);

    List<WorkOrder> selectByExample(WorkOrderExample example);

    WorkOrder selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") WorkOrder record, @Param("example") WorkOrderExample example);

    int updateByExample(@Param("record") WorkOrder record, @Param("example") WorkOrderExample example);

    int updateByPrimaryKeySelective(WorkOrder record);

    int updateByPrimaryKey(WorkOrder record);

    WorkOrderModel selectModelById(Integer id);

    List<WorkOrderModel> selectModelsByExample(WorkOrderExample example);

    List<WorkOrderModel> selectModelsByExampleLimit(@Param("example") WorkOrderExample example,@Param("index") Integer index,@Param("len") Integer len);
}